@import 'variables.scss';

body {
  line-height: 1.5em;
  font-family: $serif;
  background-color: #290001;
  background-image: image-url("space_background2.jpg");
  background-repeat:repeat-x;
  min-height: 100%;
  min-width: 1024px;
  background-attachment: fixed;
  background-position: 0% 100%;
  color: $text-color;
}

h3 {
  font-weight: bold;
  font-family: $sans-serif;
  font-size: .875em;
}

a {
  &:link, &:visited, &:hover, &:active {
    color: $secondary-color;
    text-decoration: none;
  }
  &:hover {
    text-decoration:underline;
  }
}

ol, ul {
  list-style: none;
  padding-left: 0;
}

td, th {
  vertical-align: baseline;
}

div#container {
  min-width: 980px;
  background-color: #FFF;
  margin-top: -22px;
  margin-left: 20px;
  margin-right: 40px;
  margin-bottom: 20px;
  padding: 20px 0 0;
  min-height: 700px;
}

div#footer {
  font-size: 0.8em;
  width: 960px;
  margin: auto;
  text-align: center;
  margin-top: 100px;
  padding-bottom: 10px;
}

div.left-column {
  float: left;
  margin-top: 20px;
  width: 200px;
}

div#right-column {
  background-color: #FFF;
  margin-top: 20px;
  margin-left: 240px;
  margin-right: 40px;
  margin-bottom: 20px;
  min-height: 600px;
}

#notification {
  color: #000;
  border: 2px solid #94a74d;
  margin-left: 20px;
  margin-right: 40px;
  margin-bottom: 1.0em;
  font-family: $sans-serif;
  font-weight: bold;
  background-image: image-url('check.gif');
  background-repeat: no-repeat;
  background-position: .5em center;
  padding-top: 0.25em;
  padding-right: 0.25em;
  padding-bottom: 0.25em;
  padding-left: 1.75em;
}

.inactive-topic-message {
  color: #B00;
  font-family: $sans-serif;
  font-weight: bold;
  border: 2px solid;
  margin: 10px;
  padding: 10px;
}

#error {
  color: #D00;
  border: 2px solid #D00;
  margin-left: 20px;
  margin-right: 40px;
  margin-bottom: 1.0em;
  font-family: $sans-serif;
  font-weight: bold;
  padding-top: 0.25em;
  padding-right: 0.25em;
  padding-bottom: 0.25em;
  padding-left: 1.75em;
}

#error_explanation {
  border: 2px solid #b00;
  margin-top: 0.5em;
  font-family: $sans-serif;
  padding-top: 0.25em;
  padding-right: 0.5em;
  padding-bottom: 0.25em;
  padding-left: 0.5em;

  h2 {
    color: #b00;
    font-family: $sans-serif;
    font-size: 1em;
    font-weight: normal;
    margin: 0;
    padding: 0;
    border: none;
  }

  p {
    margin: 0;
  }

  ul {
    list-style: disc inside;
    margin: 0;
  }
}

.field_with_errors label {
  color: #b00;
}

div.navigation {
  -moz-border-radius-bottomright: 15px;
  -webkit-border-bottom-right-radius: 15px;
  border-bottom-right-radius: 15px;
  -moz-border-radius-topright: 15px;
  -webkit-border-top-right-radius: 15px;
  border-top-right-radius: 15px;
  background-color: $gray-bg;
  border: 2px solid $secondary-color;
  line-height: 2em;
  margin-left: -30px;
  width: 200px;
  padding: 0.5em 0.5em 0.5em 2.5em;
  opacity: 0.8;
  color: $dark-border-color;
}

div.navigation p {
  margin: 0;
  border-bottom: $dark-border-color dotted 1px;
  font-size: 1em;
}

div.navigation a {
  color: $secondary-color;
}

div.navigation a.selected, div#topic-list-nav a.selected {
  font-weight: bold;
  color: $dark-border-color;
}

div.navigation a:link {
  text-decoration:none;
}
  
div.navigation a:hover {
  text-decoration:underline;
}

.logout-link {
  font-size: 70%;
}

div.sidebar {
  line-height: 2em;
  padding: 0em 0em 0em 0.65em;
  width: 216px;
  margin-top: 20px;
  margin-left: 0px;  
  margin-right: 0px;
}

div.admin-tools {
  background-color: $gray-bg;
  border: 2px solid $dark-border-color;
  padding: 0.5em 0.5em 1.0em 0.5em;
  width: 190px;
  margin-top: 20px;
  margin-left: 10px;
  opacity: 0.8;
  color: $dark-border-color;
  font-family: $sans-serif;
  font-weight: bold;
  font-size: 1.1em;
}

div.admin-tools h1 {
  margin: 0;
  color: $primary-color;
  border-bottom: $primary-color dotted 1px;
  padding-bottom: .25em;
  font-size: 1.2em;
}

div.admin-tools div {
  border-bottom: $primary-color dotted 1px;
}

div.admin-tools h3 {
  line-height: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

div.admin-tools input {
  font-size: 12px;
}

div.admin-tools p {
  margin: 0;
  border-bottom: $primary-color dotted 1px;
  padding: .5em 0;
}

div.admin-tools a {
  display: block;
  font-size: 16px;
  font-weight: normal;
  color: $secondary-color;
}

div.admin-tools a.selected {
  font-weight: bold;
  color: $dark-border-color;
}
    
div.admin-tools a:link {
  text-decoration:none;
}

div.admin-tools a:hover {
  text-decoration:underline;
}

div.view-person {
  padding-bottom: .5em;
}

div#contents {
  position: relative;
  margin-top: 0px;  
  margin-left: 20px;
  margin-right: 40px;
}

div#contents h1 {
  margin-top: 0px;
  font-size: 1.5em;
  font-weight: normal;
  color: $primary-color;
  border-bottom-width: 2px;
  border-bottom-color: $primary-color;
}

a.feed-link {
  display: inline-block;
  height: 16px;
  width: 16px;
  background: image-url('feed.png') left no-repeat;
  margin-left: 4px;
  border: 0; 
  font: 0/0 a; 
  text-shadow: none; 
  color: transparent; 
  background-color: transparent;
  vertical-align: middle;
}

.content-section {
  margin: 1em 0 2em 0;

  dl {
    margin-top: -.5em;
  }

  dd {
    font-size: .875em;
    padding-left: 1.5em;
    margin: 0;

    p {
      font-size:inherit;
    }
  }
  
  dt {
    font-weight: bold;
    font-family: $sans-serif;
    font-size: .875em;
    padding-top: .5em;
  }

  h2 {
    margin-bottom: 1em;
    padding-bottom: 2px;
    font-size: 1em;
    font-weight: bold;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: $primary-color;
  }
}

.ui-dialog {
  padding-left: 2em;
  padding-right: 2em;
  
  .content-section {
    h2 {
      font-family: $serif;
      font-size: 1.2em;
    }
    label {
      margin-top: 0.5em;
    }
  }
}

.list-expand {
  margin-left: 1.75em;
  font-family: $sans-serif;
  font-size: .8em;  
  padding-right: 16px;
}

label.control-label, div.form-actions, .field-label {
  margin-top: 2em;
  display:block;
  width: 100%;
  font-size: .875em;
  font-weight: bold;
  font-family: $sans-serif;
}

div.form-actions {
  margin-top: 3em;
  input.btn {
    margin-right: 0.5em;
  }
}

div.input {
  input, textarea {
    font-family: $sans-serif;
    font-size: small;
  }
  &.string, &.url, &.email, &.text, &.select {
    input {
      width: 30em;
    }
    textarea {
      width: 50em;
      height: 30em;
    }
  }
  &.integer {
    input {
      width: 5em;
    }
  }
  label.radio {
    margin-right: 1em;
    input.radio_buttons {
      margin-right: 0.5em;
    }
  }
}

a.register-button, input.register-button {
  -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  box-shadow:inset 0px 1px 0px 0px #ffffff;
  background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
  background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
  background-color:#f9f9f9;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  border-radius:6px;
  border:1px solid #dcdcdc;
  display:inline-block;
  color:#333333 !important;
  font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', serif;
  font-weight:bold;
  padding:3px 12px;
  text-decoration:none !important;
  text-shadow:1px 1px 0px #ffffff;
}a.register-button:hover, input.register-button:hover {
  background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) );
  background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% );
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9');
  background-color:#e9e9e9;
}a.register-button:active, input.register-button:active {
  position:relative;
  top:1px;
}

input.register-button {
  font-size: 14px;
  padding-top: 6px;
  padding-bottom: 7px;
}

div.register-button {
  margin-top: .5em;
  margin-left: -.5em;
}
